

package org.come.mouslisten;

import com.tool.image.ImageMixDeal;
import com.tool.image.ManimgAttribute;
import com.tool.role.RoleData;
import com.tool.role.RoleSystem;
import com.tool.tcp.GetTcpPath;

import com.tool.tcpimg.TipBox;
import com.tool.tcpimg.UIUtils;
import come.tool.Fighting.FightingMixDeal;

import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.Properties;
import javax.swing.Icon;
import javax.swing.ImageIcon;

import org.come.Frame.FrameMessageChangeJframe;
import org.come.Frame.TestSetupJframe;
import org.come.Frame.ZhuFrame;
import org.come.Jpanel.*;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;
import org.come.until.*;

public class SystemMouslisten implements MouseListener {
    public static final ImageIcon icon = new ImageIcon("skin/8100226/button/B88.png");
    private int type;

    public SystemMouslisten() {
    }

    public SystemMouslisten(int type) {
        this.type = type;
    }

    @Override
    public void mouseClicked(MouseEvent e) {
        switch (this.type) {
            case 0:
//                ZhuFrame.getZhuJpanel().addPrompt2("以切1024*768分辨率");
                type0();
                break;
            case 1:
//                ZhuFrame.getZhuJpanel().addPrompt2("以切1366*768分辨率");
                type1();
                break;

            case 101:
//                ZhuFrame.getZhuJpanel().addPrompt2("以切全屏");
                type101();
                break;

//            case 102:
//                ZhuFrame.getZhuJpanel().addPrompt2("以切800*600分辨率");
//                type102();
//                break;


            case 103:
                type103();
                break;

            case 2:
                type2();
                break;
            case 3:
                type3();
                break;
            case 4:
                type4();
                RoleSystem roleSystem = RoleData.getRoleData().getRoleSystem();
                String senmes = Agreement.getAgreement().roleSystemAgreement(GsonUtil.getGsonUtil().getgson().toJson(roleSystem));
                SendMessageUntil.toServer(senmes);
                break;
            case 5:
                type5();
                break;
            case 6:
                type6();
                break;
            case 7:
                type7();
                break;
            case 8:
                type8();
                RoleSystem roleSystem8 = RoleData.getRoleData().getRoleSystem();
                String senmes8 = Agreement.getAgreement().roleSystemAgreement(GsonUtil.getGsonUtil().getgson().toJson(roleSystem8));
                SendMessageUntil.toServer(senmes8);
                break;
            case 9:
                type9();
                break;
            case 10:
                type10();
                break;
            case 11:
                type11();
                break;
//新增小地图设置

            case 14:
                type14();
                break;
            case 12:
                type12();
                break;
            case 13:
                type13();
                break;

//新增小地图设置


            case 15:
                ZhuFrame.getZhuJpanel().addPrompt2("低性能模式，合适多开模式");
                type15();
                break;
            case 16:
                ZhuFrame.getZhuJpanel().addPrompt2("标准模式，流畅模式");
                type16();
                break;
            case 17:
                ZhuFrame.getZhuJpanel().addPrompt2("高性能模式，流畅高画质模式，合适高性能电脑");
                type17();
                break;

            case 18:
                type18();
                break;

            case 27:
                type27();
                break;
            case 28:
                type28();
                break;

            case 29:
                type29();
                break;
            case 30:
                type30();
                break;
            case 31:
                type31();
                break;

            case 32:
                type32();
                break;
            case 33:
                type33();
                break;

            case 34:
                type34();
                break;
            case 35:
                type35();
                break;
            case 36:
                type36();
                break;
            case 100:
                type100();
                break;


            case 116: {
                type116();
                break;
            }
            case 117: {
                type117();
                break;
            }
            case 118: {
                type118();
                break;
            }
            case 119: {
                type119();
                break;
            }
            case 120: {
                type120();
                break;
            }
            case 121: {
                type121();
                break;
            }
            case 122: {
                type122();
            }

        }


        if (this.type != 4 && this.type != 8) {
            writeTxt();
        }

    }


    public static void type116() {
        if (FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getDangqian().getIcon() == null) {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getDangqian().setIcon((Icon) SystemMouslisten.icon);
        } else {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getDangqian().setIcon(null);
        }
    }

    public static void type117() {
        if (FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getBangp().getIcon() == null) {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getBangp().setIcon((Icon) SystemMouslisten.icon);
        } else {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getBangp().setIcon(null);
        }
    }

    public static void type118() {
        if (FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getZhandou().getIcon() == null) {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getZhandou().setIcon((Icon) SystemMouslisten.icon);
        } else {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getZhandou().setIcon(null);
        }
    }

    public static void type119() {
        if (FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getDanmu().getIcon() == null) {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getDanmu().setIcon((Icon) SystemMouslisten.icon);
        } else {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getDanmu().setIcon(null);
        }
    }

    public static void type120() {
        if (FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getDuiwu().getIcon() == null) {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getDuiwu().setIcon((Icon) SystemMouslisten.icon);
        } else {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getDuiwu().setIcon(null);
        }
    }

    public static void type121() {
        if (FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getXinxi().getIcon() == null) {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getXinxi().setIcon((Icon) SystemMouslisten.icon);
        } else {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getXinxi().setIcon(null);
        }
    }

    public static void type122() {
        if (FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getShijie().getIcon() == null) {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getShijie().setIcon((Icon) SystemMouslisten.icon);
        } else {
            FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel().getShijie().setIcon(null);
        }
    }

    public static void type100() {
        TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getFontsizetext().setText("楷体");
        TestSetupJpanel.nameFont = new Font("楷体", 0, 18);
    }

    public static void typelushu() {
        TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getFontsizetext().setText("隶书");
        TestSetupJpanel.nameFont = UIUtils.TEXT_shuimo2;
    }

    public static void typemoren() {
        TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getFontsizetext().setText("默认");
        TestSetupJpanel.nameFont = UIUtils.TXT_lishud;
    }


    public static void type15() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNms().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNms().setIcon(icon);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getInterfacialtext().setText("低画质");
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNmsZ().setIcon(null);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNmsG().setIcon(null);
            //   ManimgAttribute.XNMSXZSXF = "1";   //清除神行符关联方法
            ManimgAttribute.XNMSXZSXF = "1";
        }

    }

    public static void type16() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNmsZ().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNms().setIcon(null);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNmsZ().setIcon(icon);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getInterfacialtext().setText("标准画质");
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNmsG().setIcon(null);
//            GameJpanel.XNMSXZ = "2";
//            ManimgAttribute.XNMSXZSXF = "2"; //清除神行符关联方法
        }

    }

    public static void type17() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNmsG().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNms().setIcon(null);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNmsZ().setIcon(null);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getXNmsG().setIcon(icon);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getInterfacialtext().setText("超高画质");
//            GameJpanel.XNMSXZ = "3";
//            ManimgAttribute.XNMSXZSXF = "3";
        }

    }

    public static void type0() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen().setIcon(null);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow().setIcon(icon);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getResolutiontext().setText("800x600");
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen1().setIcon(null);
//            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow1().setIcon(null);
            ScrenceUntil.ScreceChange(0);
            FightingMixDeal.changepath();
        }

    }

    public static void type1() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen().setIcon(icon);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getResolutiontext().setText("1024x768");
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow().setIcon(null);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen1().setIcon(null);
//            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow1().setIcon(null);
            ScrenceUntil.ScreceChange(1);
            FightingMixDeal.changepath();
        }

    }

    public static void type101() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen1().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen().setIcon(null);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow().setIcon(null);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen1().setIcon(icon);
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getResolutiontext().setText("1366x768");
//            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow1().setIcon(null);
            ScrenceUntil.ScreceChange(2);
            FightingMixDeal.changepath();
        }

    }

//    public static void type102() {
//        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow1().getIcon() == null) {
//            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen().setIcon(null);
//            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow().setIcon(null);
//            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabFullscreen1().setIcon(null);
//            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabWindow1().setIcon(icon);
//            ScrenceUntil.ScreceChange(3);
//            FightingMixDeal.changepath();
//        }
//
//    }


    public static void type2() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabMusic().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabMusic().setIcon(icon);
            Music.kz1 = true;
            Music.addbeijing(Util.mapmodel.getGamemap().getMusic() + ".mp3");

            ZhuFrame.getZhuJpanel().addPrompt2("开启音乐");
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabMusic().setIcon(null);
            Music.kz1 = false;
            Music.beijing(Music.kz1);

            ZhuFrame.getZhuJpanel().addPrompt2("关闭音乐");
        }

    }

    public static void type3() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSound().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSound().setIcon(icon);
            Music.kz2 = true;

            ZhuFrame.getZhuJpanel().addPrompt2("开启音效");
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSound().setIcon(null);
            Music.kz2 = false;
            Music.yinxiao(Music.kz2);

            ZhuFrame.getZhuJpanel().addPrompt2("关闭音效");
        }

    }

    public static void type4() {
        RoleSystem roleSystem;
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabPlayswitch().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabPlayswitch().setIcon(icon);
            roleSystem = RoleData.getRoleData().getRoleSystem();
            roleSystem.setIsPk(1);
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabPlayswitch().setIcon(null);
            roleSystem = RoleData.getRoleData().getRoleSystem();
            roleSystem.setIsPk(0);
        }

    }

    public static void type5() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabRefusemsg().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabRefusemsg().setIcon(icon);
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabRefusemsg().setIcon(null);
        }

    }

    public static void type6() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabLetter().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabLetter().setIcon(icon);
            ImageMixDeal.isShadow = true;
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabLetter().setIcon(null);
            ImageMixDeal.isShadow = false;
        }

    }

    public static void type7() {
        RoleSystem roleSystem;
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabJoinfriends().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabJoinfriends().setIcon(icon);
            roleSystem = RoleData.getRoleData().getRoleSystem();
            roleSystem.setIsFriend(1);
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabJoinfriends().setIcon(null);
            roleSystem = RoleData.getRoleData().getRoleSystem();
            roleSystem.setIsFriend(0);
        }

    }

    public static void type8() {
        RoleSystem roleSystem;
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabReceiveitems().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabReceiveitems().setIcon(icon);
            roleSystem = RoleData.getRoleData().getRoleSystem();
            roleSystem.setIsGood(1);
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabReceiveitems().setIcon(null);
            roleSystem = RoleData.getRoleData().getRoleSystem();
            roleSystem.setIsGood(0);
        }

    }

    public static void type9() {
        RoleSystem roleSystem;
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabAcceptteam().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabAcceptteam().setIcon(icon);
            roleSystem = RoleData.getRoleData().getRoleSystem();
            roleSystem.setIsTeam(1);
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabAcceptteam().setIcon(null);
            roleSystem = RoleData.getRoleData().getRoleSystem();
            roleSystem.setIsTeam(0);
        }

    }

    public static void type10() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSkillFull().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSkillFull().setIcon(icon);
            GetTcpPath.STRTMP = "2";

            ZhuFrame.getZhuJpanel().addPrompt2("开启全屏法术特效");
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSkillFull().setIcon(null);
            GetTcpPath.STRTMP = "1";

            ZhuFrame.getZhuJpanel().addPrompt2("关闭全屏法术特效");
        }

    }


    //新增小地图设置
    public static void type14() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSmapcs().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSmapcs().setIcon(icon);
            WorldMapJpanel.Smapcs = "1";
            Util.Smapcs = "1";
            TestSetupJpanel.Smapcs = "1";
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSmapcs().setIcon(null);
            WorldMapJpanel.Smapcs = "";
            Util.Smapcs = "";
            TestSetupJpanel.Smapcs = "";
        }

    }


    public static void type12() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSmapnpc().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSmapnpc().setIcon(icon);
            WorldMapJpanel.Smapnpc = "2";
            Util.Smapnpc = "2";
            TestSetupJpanel.Smapnpc = "2";
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSmapnpc().setIcon(null);
            WorldMapJpanel.Smapnpc = "";
            Util.Smapnpc = "";
            TestSetupJpanel.Smapnpc = "";
        }

    }


    public static void type13() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSmapqtnpc().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSmapqtnpc().setIcon(icon);
            WorldMapJpanel.Smapqtnpc = "3";
            Util.Smapqtnpc = "3";
            TestSetupJpanel.Smapqtnpc = "3";
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSmapqtnpc().setIcon(null);
            WorldMapJpanel.Smapqtnpc = "";
            Util.Smapqtnpc = "";
            TestSetupJpanel.Smapqtnpc = "";
        }

    }


    public static void type27() {
        if (TestsmallmapJpanel.getLabNoC().getIcon() == null) {
            TestsmallmapJpanel.getLabNoC().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            TestsmallmapJpanel.getQbnpx().setIcon(null);
        } else {
            TestsmallmapJpanel.getLabNoC().setIcon(null);
            TestsmallmapJpanel.getQbnpx().setIcon(null);
        }
    }

    public static void type28() {
        if (TestsmallmapJpanel.getMove().getIcon() == null) {
            TestsmallmapJpanel.getMove().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            TestsmallmapJpanel.getQbnpx().setIcon(null);
        } else {
            TestsmallmapJpanel.getMove().setIcon(null);
            TestsmallmapJpanel.getQbnpx().setIcon(null);
        }
    }


    public static void type29() {
        if (TestsmallmapJpanel.getRwnpc().getIcon() == null) {
            TestsmallmapJpanel.getRwnpc().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            TestsmallmapJpanel.getQbnpx().setIcon(null);
        } else {
            TestsmallmapJpanel.getRwnpc().setIcon(null);
            TestsmallmapJpanel.getQbnpx().setIcon(null);
        }
    }

    public static void type30() {
        if (TestsmallmapJpanel.getSynpc().getIcon() == null) {
            TestsmallmapJpanel.getSynpc().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            TestsmallmapJpanel.getQbnpx().setIcon(null);
        } else {
            TestsmallmapJpanel.getSynpc().setIcon(null);
            TestsmallmapJpanel.getQbnpx().setIcon(null);
        }
    }


    public static void type31() {
        if (TestsmallmapJpanel.getQbnpx().getIcon() == null) {
            TestsmallmapJpanel.getQbnpx().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            TestsmallmapJpanel.getSynpc().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            TestsmallmapJpanel.getRwnpc().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            TestsmallmapJpanel.getMove().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            TestsmallmapJpanel.getLabNoC().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
        } else {
            TestsmallmapJpanel.getQbnpx().setIcon(null);
            TestsmallmapJpanel.getSynpc().setIcon(null);
            TestsmallmapJpanel.getRwnpc().setIcon(null);
            TestsmallmapJpanel.getMove().setIcon(null);
            TestsmallmapJpanel.getLabNoC().setIcon(null);
        }
    }

    //新增小地图设置
    public static void type32() {
        if (WorldTestsmallmapJpanel.getLabNoCWorld().getIcon() == null) {
            WorldTestsmallmapJpanel.getLabNoCWorld().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon(null);
        } else {
            WorldTestsmallmapJpanel.getLabNoCWorld().setIcon(null);
            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon(null);
        }
    }

    public static void type33() {
        if (WorldTestsmallmapJpanel.getMoveWorld().getIcon() == null) {
            WorldTestsmallmapJpanel.getMoveWorld().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon(null);
        } else {
            WorldTestsmallmapJpanel.getMoveWorld().setIcon(null);
            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon(null);
        }
    }


    public static void type34() {
        if (WorldTestsmallmapJpanel.getRwnpcWorld().getIcon() == null) {
            WorldTestsmallmapJpanel.getRwnpcWorld().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon(null);
        } else {
            WorldTestsmallmapJpanel.getRwnpcWorld().setIcon(null);
            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon(null);
        }
    }

    public static void type35() {
        if (WorldTestsmallmapJpanel.getSynpcWorld().getIcon() == null) {
            WorldTestsmallmapJpanel.getSynpcWorld().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon(null);
        } else {
            WorldTestsmallmapJpanel.getSynpcWorld().setIcon(null);
            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon(null);
        }
    }


    public static void type36() {
        if (WorldTestsmallmapJpanel.getQbnpxWorld() == null || WorldTestsmallmapJpanel.getQbnpxWorld().getIcon() == null) {
//            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
//            WorldTestsmallmapJpanel.getSynpcWorld().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
//            WorldTestsmallmapJpanel.getRwnpcWorld().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
//            WorldTestsmallmapJpanel.getMoveWorld().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
//            WorldTestsmallmapJpanel.getLabNoCWorld().setIcon((Icon) new ImageIcon("skin/8100226/button/13.png"));
        } else {
            WorldTestsmallmapJpanel.getQbnpxWorld().setIcon(null);
            WorldTestsmallmapJpanel.getSynpcWorld().setIcon(null);
            WorldTestsmallmapJpanel.getRwnpcWorld().setIcon(null);
            WorldTestsmallmapJpanel.getMoveWorld().setIcon(null);
            WorldTestsmallmapJpanel.getLabNoCWorld().setIcon(null);
        }
    }

    //新增小地图设置


    public static void type103() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabDkqsz().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabDkqsz().setIcon(icon);
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabDkqsz().setIcon(null);
        }

    }

    public static void type11() {
        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabMusicNew().getIcon() == null) {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabMusicNew().setIcon(icon);
            Music.MusicNew = "1";
            ZhuFrame.getZhuJpanel().addPrompt2("新版音乐(切换场景后生效)");
        } else {
            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabMusicNew().setIcon(null);
            Music.MusicNew = "2";
            ZhuFrame.getZhuJpanel().addPrompt2("旧版音乐(切换场景后生效)");
        }

    }

    //    public static void type18() {
//        if (TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSkillFullXJ().getIcon() == null) {
//            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSkillFullXJ().setIcon(icon);
//            GetTcpPath.STRTMPXJ = "1";
//            ZhuFrame.getZhuJpanel().addPrompt2("切换新法术特效");
//        } else {
//            TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSkillFullXJ().setIcon(null);
//            GetTcpPath.STRTMPXJ = "2";
//            ZhuFrame.getZhuJpanel().addPrompt2("切换旧法术特效");
//        }
//    }
    public static void type18() {
        // 直接提示功能已屏蔽，不执行任何切换操作
        ZhuFrame.getZhuJpanel().addPrompt2("法术切换屏蔽中暂不生效");

        // 如果需要保持界面状态一致，可以添加以下代码：
        // TestSetupJframe.getTestSetupJframe().getTestSetupJpanel().getLabSkillFullXJ().setIcon(icon);
        // GetTcpPath.STRTMPXJ = "1"; // 或保持原来的值
    }

    public static void Systeminitial() {
        type0();
        type1();
        type101();
//        type102();
        TestSetupJpanel setupJpanel = TestSetupJframe.getTestSetupJframe().getTestSetupJpanel();
        setupJpanel.getLabMusic().setIcon(icon);
        setupJpanel.getLabMusicNew().setIcon(icon);
        setupJpanel.getLabSound().setIcon(icon);
        setupJpanel.getLabPlayswitch().setIcon(icon);
        setupJpanel.getLabRefusemsg().setIcon(icon);
        setupJpanel.getLabLetter().setIcon(icon);
        setupJpanel.getLabJoinfriends().setIcon(icon);
        setupJpanel.getLabReceiveitems().setIcon(icon);
        setupJpanel.getLabAcceptteam().setIcon(icon);
        setupJpanel.getLabSkillFull().setIcon(icon);
        setupJpanel.getLabSkillFullXJ().setIcon(icon);
        //新增小地图设置
        setupJpanel.getLabSmapcs().setIcon(icon);
        setupJpanel.getLabSmapnpc().setIcon(icon);
        setupJpanel.getLabSmapqtnpc().setIcon(icon);
        //新增小地图设置
        setupJpanel.getLabDkqsz().setIcon(icon);

//        setupJpanel.getXNms().setIcon(icon);
//        setupJpanel.getXNmsZ().setIcon(icon);
//        setupJpanel.getXNmsG().setIcon(icon);

        type15();
        type16();
        type17();

//        type27();
//        type28();
//        type29();
//        type30();
//        type31();

    }


    public static void readSysteminit() {
        Properties properties = new Properties();
        FileInputStream fis = null;
        InputStreamReader isr = null;

        try {
            fis = new FileInputStream(new File("resource/other/systemInit.txt"));
            isr = new InputStreamReader(fis, StandardCharsets.UTF_8);
            properties.load(isr);// 使用properties对象加载输入流
            String showView = properties.getProperty("showView");// 显示模式
            String music = properties.getProperty("music");// 音乐
            String musicNew = properties.getProperty("musicNew");// 新背景音乐
            String musicSound = properties.getProperty("musicSound");// 音效
            String stranger = properties.getProperty("stranger");// 拒绝陌生人消息
            String shadow = properties.getProperty("shadow");// 影子模式
            String addFriend = properties.getProperty("addFriend");// 加入好友
            String acceptTeam = properties.getProperty("acceptTeam");// 接收组队
            String skilFull = properties.getProperty("skilFull");
            String skilFullXJ = properties.getProperty("skilFullXJ");
//新增小地图设置
            String smapcs = properties.getProperty("smapcs");
            String smapnpc = properties.getProperty("smapnpc");
            String smapqtnpc = properties.getProperty("smapqtnpc");
//新增小地图设置
            String dkqsz = properties.getProperty("single");

            String xNms = properties.getProperty("xNms");

            final String kaitizi = properties.getProperty("kaitizi");

//            String labNoC = properties.getProperty("labNoC");
//            String move = properties.getProperty("move");
//            String rwnpc = properties.getProperty("rwnpc");
//            String synpc = properties.getProperty("synpc");
//            String qbnpx = properties.getProperty("qbnpx");

            final String dangqian = properties.getProperty("dangqian");
            final String bangp = properties.getProperty("bangp");
            final String zhandou = properties.getProperty("zhandou");
            final String danmu = properties.getProperty("danmu");
            final String duiwu = properties.getProperty("duiwu");
            final String xixni = properties.getProperty("xixni");
            final String shijie = properties.getProperty("shijie");

            TestSetupJpanel setupJpanel = TestSetupJframe.getTestSetupJframe().getTestSetupJpanel();

            final SwitchchannelsJpanel switchchannelsJpanel = FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel();


            if (dangqian != null) {
                if ("off".equals(dangqian)) {
                    switchchannelsJpanel.getDangqian().setIcon((Icon) SystemMouslisten.icon);
                } else {
                    switchchannelsJpanel.getDangqian().setIcon(null);
                }
                type116();
            } else {
                switchchannelsJpanel.getDangqian().setIcon((Icon) SystemMouslisten.icon);
            }
            if (bangp != null) {
                if ("off".equals(bangp)) {
                    switchchannelsJpanel.getBangp().setIcon((Icon) SystemMouslisten.icon);
                } else {
                    switchchannelsJpanel.getBangp().setIcon(null);
                }
                type117();
            } else {
                switchchannelsJpanel.getBangp().setIcon((Icon) SystemMouslisten.icon);
            }
            if (zhandou != null) {
                if ("off".equals(zhandou)) {
                    switchchannelsJpanel.getZhandou().setIcon((Icon) SystemMouslisten.icon);
                } else {
                    switchchannelsJpanel.getZhandou().setIcon(null);
                }
                type118();
            } else {
                switchchannelsJpanel.getZhandou().setIcon((Icon) SystemMouslisten.icon);
            }
            if (xixni != null) {
                if ("off".equals(xixni)) {
                    switchchannelsJpanel.getXinxi().setIcon((Icon) SystemMouslisten.icon);
                } else {
                    switchchannelsJpanel.getXinxi().setIcon(null);
                }
                type121();
            } else {
                switchchannelsJpanel.getXinxi().setIcon((Icon) SystemMouslisten.icon);
            }
            if (danmu != null) {
                if ("off".equals(danmu)) {
                    switchchannelsJpanel.getDanmu().setIcon((Icon) SystemMouslisten.icon);
                } else {
                    switchchannelsJpanel.getDanmu().setIcon(null);
                }
                type119();
            } else {
                switchchannelsJpanel.getDanmu().setIcon((Icon) SystemMouslisten.icon);
            }
            if (duiwu != null) {
                if ("off".equals(duiwu)) {
                    switchchannelsJpanel.getDuiwu().setIcon((Icon) SystemMouslisten.icon);
                } else {
                    switchchannelsJpanel.getDuiwu().setIcon(null);
                }
                type120();
            } else {
                switchchannelsJpanel.getDuiwu().setIcon((Icon) SystemMouslisten.icon);
            }
            if (shijie != null) {
                if ("off".equals(shijie)) {
                    switchchannelsJpanel.getShijie().setIcon((Icon) SystemMouslisten.icon);
                } else {
                    switchchannelsJpanel.getShijie().setIcon(null);
                }
                type122();
            } else {
                switchchannelsJpanel.getShijie().setIcon((Icon) SystemMouslisten.icon);
            }

            if (showView != null) {
                if ("0".equals(showView)) {
                    type0();
                } else {
                    if ("2".equals(showView)) {
                        type101();
                    } else {
                        type1();
                    }
                }
            } else {
                type1();
            }

//            if (showView != null) {
//                if ("0".equals(showView)) {
//                    type0();
//                } else if  ("1".equals(showView)) {
//                    type1();
//                }else if  ("2".equals(showView)) {
//                    type101();
//                }
////                else if  ("3".equals(showView)) {
////                    type102();
////                }
//            }

            if (xNms != null) {
                if ("1".equals(xNms)) {
                    type15();
                } else {
                    if ("2".equals(xNms)) {
                        type16();
                    } else {
                        type17();
                    }
                }
            } else {
                type17();
            }

//新增小地图设置
            if (smapcs != null) {
                if ("off".equals(smapcs)) {
                    setupJpanel.getLabSmapcs().setIcon(icon);
                } else {
                    setupJpanel.getLabSmapcs().setIcon(null);
                }

                type14();
            } else {
                setupJpanel.getLabSmapcs().setIcon(icon);
            }


            if (smapnpc != null) {
                if ("off".equals(smapnpc)) {
                    setupJpanel.getLabSmapnpc().setIcon(icon);
                } else {
                    setupJpanel.getLabSmapnpc().setIcon(null);
                }

                type12();
            } else {
                setupJpanel.getLabSmapnpc().setIcon(icon);
            }


            if (smapqtnpc != null) {
                if ("off".equals(smapqtnpc)) {
                    setupJpanel.getLabSmapqtnpc().setIcon(icon);
                } else {
                    setupJpanel.getLabSmapqtnpc().setIcon(null);
                }

                type13();
            } else {
                setupJpanel.getLabSmapqtnpc().setIcon(icon);
            }

//新增小地图设置

            if (music != null) {
                if ("off".equals(music)) {
                    setupJpanel.getLabMusic().setIcon(icon);
                } else {
                    setupJpanel.getLabMusic().setIcon(null);
                }

                type2();
            } else {
                setupJpanel.getLabMusic().setIcon(icon);
            }

            if (musicNew != null) {
                if ("off".equals(musicNew)) {
                    setupJpanel.getLabMusicNew().setIcon(icon);
                } else {
                    setupJpanel.getLabMusicNew().setIcon(null);
                }

                type11();
            } else {
                setupJpanel.getLabMusicNew().setIcon(icon);
            }

            if (musicSound != null) {
                if ("off".equals(musicSound)) {
                    setupJpanel.getLabSound().setIcon(icon);
                } else {
                    setupJpanel.getLabSound().setIcon(null);
                }

                type3();
            } else {
                setupJpanel.getLabSound().setIcon(icon);
            }

            if (stranger != null) {
                if ("off".equals(stranger)) {
                    setupJpanel.getLabRefusemsg().setIcon(icon);
                } else {
                    setupJpanel.getLabRefusemsg().setIcon(null);
                }

                type5();
            } else {
                setupJpanel.getLabRefusemsg().setIcon(icon);
            }

            if (shadow != null) {
                if ("off".equals(shadow)) {
                    setupJpanel.getLabLetter().setIcon(icon);
                } else {
                    setupJpanel.getLabLetter().setIcon(null);
                }

                type6();
            } else {
                setupJpanel.getLabLetter().setIcon(icon);
            }

            if (addFriend != null) {
                if ("off".equals(addFriend)) {
                    setupJpanel.getLabJoinfriends().setIcon(icon);
                } else {
                    setupJpanel.getLabJoinfriends().setIcon(null);
                }

                type7();
            } else {
                setupJpanel.getLabJoinfriends().setIcon(icon);
            }

            if (acceptTeam != null) {
                if ("off".equals(acceptTeam)) {
                    setupJpanel.getLabAcceptteam().setIcon(icon);
                } else {
                    setupJpanel.getLabAcceptteam().setIcon(null);
                }

                type9();
            } else {
                setupJpanel.getLabAcceptteam().setIcon(icon);
            }

            if (skilFull != null) {
                if ("off".equals(skilFull)) {
                    setupJpanel.getLabSkillFull().setIcon(icon);
                } else {
                    setupJpanel.getLabSkillFull().setIcon(null);
                }
                type10();
            } else {
                setupJpanel.getLabSkillFull().setIcon(icon);
            }

            if (skilFullXJ != null) {
                if ("off".equals(skilFullXJ)) {
                    setupJpanel.getLabSkillFullXJ().setIcon(icon);
                } else {
                    setupJpanel.getLabSkillFullXJ().setIcon(null);
                }
                type18();
            } else {
                setupJpanel.getLabSkillFullXJ().setIcon(icon);
            }


            if (dkqsz != null) {
                if ("2".equals(dkqsz)) {
                    setupJpanel.getLabDkqsz().setIcon(icon);
                } else {
                    setupJpanel.getLabDkqsz().setIcon(null);
                }

                type103();
            } else {
                setupJpanel.getLabDkqsz().setIcon(icon);
            }


            if (kaitizi != null) {
                if ("onk".equals(kaitizi)) {
                    type100();
                } else {
                    if ("onl".equals(kaitizi)) {
                        typelushu();
                    } else {
                        if ("on".equals(kaitizi)) {
                            typemoren();
                        }
                    }
                }
            }

//新增小地图设置
//            if (labNoC != null) {
//                if ("off".equals(labNoC)) {
//                    TestsmallmapJpanel.getLabNoC().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//                } else {
//                    TestsmallmapJpanel.getLabNoC().setIcon(null);
//                }
//
//                type27();
//            } else {
//                TestsmallmapJpanel.getLabNoC().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//            }
//
//
//            if (move != null) {
//                if ("off".equals(move)) {
//                    TestsmallmapJpanel.getMove().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//                } else {
//                    TestsmallmapJpanel.getMove().setIcon(null);
//                }
//
//                type28();
//            } else {
//                TestsmallmapJpanel.getMove().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//            }
//
//
//
//            if (rwnpc != null) {
//                if ("off".equals(rwnpc)) {
//                    TestsmallmapJpanel.getRwnpc().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//                } else {
//                    TestsmallmapJpanel.getRwnpc().setIcon(null);
//                }
//
//                type29();
//            } else {
//                TestsmallmapJpanel.getRwnpc().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//            }
//
//            if (synpc != null) {
//                if ("off".equals(synpc)) {
//                    TestsmallmapJpanel.getSynpc().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//                } else {
//                    TestsmallmapJpanel.getSynpc().setIcon(null);
//                }
//
//                type30();
//            } else {
//                TestsmallmapJpanel.getSynpc().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//            }
//
//            if (qbnpx != null) {
//                if ("off".equals(qbnpx)) {
//                    TestsmallmapJpanel.getQbnpx().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//                } else {
//                    TestsmallmapJpanel.getQbnpx().setIcon(null);
//                }
//                type31();
//            } else {
//                TestsmallmapJpanel.getQbnpx().setIcon((Icon)new ImageIcon("skin/8100226/button/13.png"));
//            }


//新增小地图设置


            setupJpanel.getLabPlayswitch().setIcon(icon);
            setupJpanel.getLabReceiveitems().setIcon(icon);
        } catch (IOException var23) {
            Systeminitial();
        } finally {
            try {
                if (isr != null) {
                    isr.close();
                }
            } catch (IOException var22) {
                var22.printStackTrace();
            }

            try {
                if (fis != null) {
                    fis.close();
                }
            } catch (IOException var21) {
                var21.printStackTrace();
            }

        }


    }

    public static void writeTxt() {
        FileOutputStream outputStream = null;
        Properties properties = new Properties();

        try {
            outputStream = new FileOutputStream("resource/other/systemInit.txt");
            TestSetupJpanel setupJpanel = TestSetupJframe.getTestSetupJframe().getTestSetupJpanel();
            final SwitchchannelsJpanel switchchannelsJpanel = FrameMessageChangeJframe.getFrameMessageChangeJframe().getSwitchchannelsJpanel();


            if (switchchannelsJpanel.getDangqian().getIcon() != null) {
                properties.setProperty("dangqian", "on");
            } else {
                properties.setProperty("dangqian", "off");
            }
            if (switchchannelsJpanel.getBangp().getIcon() != null) {
                properties.setProperty("bangp", "on");
            } else {
                properties.setProperty("bangp", "off");
            }
            if (switchchannelsJpanel.getZhandou().getIcon() != null) {
                properties.setProperty("zhandou", "on");
            } else {
                properties.setProperty("zhandou", "off");
            }
            if (switchchannelsJpanel.getXinxi().getIcon() != null) {
                properties.setProperty("xixni", "on");
            } else {
                properties.setProperty("xixni", "off");
            }
            if (switchchannelsJpanel.getDanmu().getIcon() != null) {
                properties.setProperty("danmu", "on");
            } else {
                properties.setProperty("danmu", "off");
            }
            if (switchchannelsJpanel.getDuiwu().getIcon() != null) {
                properties.setProperty("duiwu", "on");
            } else {
                properties.setProperty("duiwu", "off");
            }
            if (switchchannelsJpanel.getShijie().getIcon() != null) {
                properties.setProperty("shijie", "on");
            } else {
                properties.setProperty("shijie", "off");
            }

            if ("1024x768".equals(setupJpanel.getResolutiontext().getText())) {
                properties.setProperty("showView", "1");
            } else {
                if ("800x600".equals(setupJpanel.getResolutiontext().getText())) {
                    properties.setProperty("showView", "0");
                } else {
                    if ("1366x768".equals(setupJpanel.getResolution1366().getText())) {
                        properties.setProperty("showView", "2");
                    }
                }
            }

//            if (setupJpanel.getLabFullscreen().getIcon() != null) {
//                properties.setProperty("showView", "1");
//            } else if (setupJpanel.getLabWindow().getIcon() != null) {
//                properties.setProperty("showView", "0");
//            } else if (setupJpanel.getLabFullscreen1().getIcon() != null) {
//                properties.setProperty("showView", "2");
//            }
//            else if (setupJpanel.getLabWindow1().getIcon() != null) {
//                properties.setProperty("showView", "3");
//            }


            if ("低画质".equals(setupJpanel.getInterfacialtext().getText())) {
                properties.setProperty("xNms", "1");
            } else {
                if ("标准画质".equals(setupJpanel.getInterfacialtext().getText())) {
                    properties.setProperty("xNms", "2");
                } else {
                    if ("超高画质".equals(setupJpanel.getInterfacialtext().getText())) {
                        properties.setProperty("xNms", "3");
                    }
                }
            }

//            if (setupJpanel.getXNms().getIcon() != null) {
//                properties.setProperty("xNms", "1");
//            } else if (setupJpanel.getXNmsZ().getIcon() != null) {
//                properties.setProperty("xNms", "2");
//            } else if (setupJpanel.getXNmsG().getIcon() != null) {
//                properties.setProperty("xNms", "3");
//            }


            if ("默认".equals(setupJpanel.getFontsizetext().getText())) {
                properties.setProperty("kaitizi", "on");
            } else {
                if ("楷体".equals(setupJpanel.getFontsizetext().getText())) {
                    properties.setProperty("kaitizi", "onk");
                } else {
                    if ("隶书".equals(setupJpanel.getFontsizetext().getText())) {
                        properties.setProperty("kaitizi", "onl");
                    }
                }
            }


            if (setupJpanel.getLabMusic().getIcon() != null) {
                properties.setProperty("music", "on");
            } else {
                properties.setProperty("music", "off");
            }

            if (setupJpanel.getLabMusicNew().getIcon() != null) {
                properties.setProperty("musicNew", "on");
            } else {
                properties.setProperty("musicNew", "off");
            }

            if (setupJpanel.getLabSound().getIcon() != null) {
                properties.setProperty("musicSound", "on");
            } else {
                properties.setProperty("musicSound", "off");
            }

            if (setupJpanel.getLabRefusemsg().getIcon() != null) {
                properties.setProperty("stranger", "on");
            } else {
                properties.setProperty("stranger", "off");
            }

            if (setupJpanel.getLabLetter().getIcon() != null) {
                properties.setProperty("shadow", "on");
            } else {
                properties.setProperty("shadow", "off");
            }

            if (setupJpanel.getLabJoinfriends().getIcon() != null) {
                properties.setProperty("addFriend", "on");
            } else {
                properties.setProperty("addFriend", "off");
            }

            if (setupJpanel.getLabAcceptteam().getIcon() != null) {
                properties.setProperty("acceptTeam", "on");
            } else {
                properties.setProperty("acceptTeam", "off");
            }
            if (setupJpanel.getLabSkillFull().getIcon() != null) {
                properties.setProperty("skilFull", "on");
            } else {
                properties.setProperty("skilFull", "off");
            }
            if (setupJpanel.getLabSkillFullXJ().getIcon() != null) {
                properties.setProperty("skilFullXJ", "on");
            } else {
                properties.setProperty("skilFullXJ", "off");
            }

            if (setupJpanel.getLabSmapcs().getIcon() != null) {
                properties.setProperty("smapcs", "on");
            } else {
                properties.setProperty("smapcs", "off");
            }


            if (setupJpanel.getLabSmapnpc().getIcon() != null) {
                properties.setProperty("smapnpc", "on");
            } else {
                properties.setProperty("smapnpc", "off");
            }


            if (setupJpanel.getLabSmapqtnpc().getIcon() != null) {
                properties.setProperty("smapqtnpc", "on");
            } else {
                properties.setProperty("smapqtnpc", "off");
            }


            if (setupJpanel.getLabDkqsz().getIcon() != null) {
                properties.setProperty("single", "1");
            } else {
                properties.setProperty("single", "2");
            }


//新增小地图设置
//            if (TestsmallmapJpanel.getLabNoC().getIcon() != null) {
//                properties.setProperty("labNoC", "on");
//            } else {
//                properties.setProperty("labNoC", "off");
//            }
//            if (TestsmallmapJpanel.getMove().getIcon() != null) {
//                properties.setProperty("move", "on");
//            } else {
//                properties.setProperty("move", "off");
//            }
//            if (TestsmallmapJpanel.getRwnpc().getIcon() != null) {
//                properties.setProperty("rwnpc", "on");
//            } else {
//                properties.setProperty("rwnpc", "off");
//            }
//
//            if (TestsmallmapJpanel.getSynpc().getIcon() != null) {
//                properties.setProperty("synpc", "on");
//            } else {
//                properties.setProperty("synpc", "off");
//            }
//
//
//            if (TestsmallmapJpanel.getQbnpx().getIcon() != null) {
//                properties.setProperty("qbnpx", "on");
//            } else {
//                properties.setProperty("qbnpx", "off");
//            }


//新增小地图设置


            properties.store(outputStream, null);
        } catch (IOException var12) {
            var12.printStackTrace();
        } finally {
            if (outputStream != null) {
                try {
                    outputStream.close();
                } catch (IOException var11) {
                    var11.printStackTrace();
                }
            }

        }

    }

    @Override
    public void mousePressed(MouseEvent e) {
    }

    @Override
    public void mouseReleased(MouseEvent e) {
    }

    @Override
    public void mouseEntered(MouseEvent e) {
        MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE12);
    }

    @Override
    public void mouseExited(MouseEvent e) {
        MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE1);
    }

    public static void run(String type) {
        try {
            ZhuFrame.getZhuJpanel().addPrompt2(type);
        } catch (Exception e) {
            // TODO: handle exception
        }
    }
}
